home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: faulkne1@ix.netcom.com(George R Faulkner )
- Newsgroups: comp.lang.c++
- Subject: How do I use BC++ DLL in VB and share global vars?
- Date: 4 Mar 1996 22:06:05 GMT
- Organization: Netcom
- Message-ID: <4hfpgd$t31@ixnews3.ix.netcom.com>
- NNTP-Posting-Host: ix-trn-nj1-06.ix.netcom.com
- X-NETCOM-Date: Mon Mar 04 2:06:05 PM PST 1996
-
- Hi. I'm creating a program in Windows which will be
- available in both 16-bit and 32-bit versions. For
- both versions, I'm using Visual Basic for the main
- interface and some of the less speed-demanding
- routines, and Borland C++ 4.5 DLL routines for
- the speed-demanding routines. I'd like to know
- how to do the following things:
-
- #1. Share variables and entire arrays between the C++ DLL
- and the Visual Basic EXE. I'm not just talking about
- passing the variables as parameters, I mean sharing
- them. The variables should be global variables, both
- in the DLL and in the VB EXE.
- #2. Retain the values of global variables and arrays
- in the DLL between function calls from the EXE
- #3. Have a DLL routine to draw graphics to a specific
- VB form or control, specified by the VB EXE
-
- Anybody know how to do these, if they can be done?
- Anybody have any work-arounds if these cannot
- be done? Please respond my e-mail, I don't
- read this newsgroup very much.
- --
- Dave Faulkner
-
- "With a name like Dave, it has to be good."
-